function [] = renameResFiles( dir, baseName, maxId)
dir = strcat('..\..\res\', dir);
dir = strcat(dir, '\');
ext = '.obj';
baseName = strcat(dir, baseName);

for i = 1:maxId
    fromFile = strcat(strcat(baseName, '-'), getIdById(i)); fromFile = strcat(fromFile, ext);
    toFile = strcat(strcat(baseName, '_'), getIdById(i)); toFile = strcat(toFile, ext);
    movefile(fromFile, toFile);
end%for
end%function renameResFiles

function [idStr] = getIdById(id)
idStr = int2str(id);
if (id < 10)
    idStr = strcat('0', idStr );
end%if
end%function getIdById

